// 缓存本地
var save = function (key, value) {
    if (typeof value === "object") {
        value = JSON.stringify(value);
    }
    localStorage.setItem(key, value);
};
// 读取缓存
var read = function (key) {
    var value = localStorage.getItem(key);
    return value;
};
// 删除缓存
var remove = function (key) {
    localStorage.removeItem(key);
};
// 清空缓存
var clear = function () {
    localStorage.clear();
};
